
; #CURRENT# ----------------------------------------------
; Func_Install
;--------------------------------------------------------- 

; #Function# ---------------------------------------------
; Name...........: Func_Install
; Description ...: Install DiskSafe
; Parameters ....: 
; Return values .: NA
;----------------------------------------------------------

#cs
#include <Variable.au3>
#include <Func.au3>
Func_Install($G_DSexePath,$G_DSexeName)
#ce


Func Func_Install($DSexeLocation,$DSexe)
	
	_log("Func_Install() IN")
	
	;ex:C:\DiskSafe-3.62-201-IMA-2.50-376-falcon.exe
	_log("$DSexeLocation: " & $DSexeLocation)
	_log("$DSexe: " & $DSexe)
	
	Run($DSexeLocation & $DSexe)
	
	WinWait($G_title_Install, $G_text_Install)	
	WinActivate($G_title_Install, $G_text_Install)
	WinWaitActive($G_title_Install, $G_text_Install)
	
	ControlClick ( $G_title_Install, "&Yes", 6)
	
	_log("Func_Install() OUT")
	
	Shutdown(6)
	
EndFunc
